<footer class="overHidden">
    <div class="footer-left">
        <img src="{$common.img}" alt="图片丢失" />
        <div>官方微信</div>
    </div>
    <div class="footer-right">
        <div>装修咨询热线:{$common.phone}</div>
        <div>版权所有:{$common.company}</div>
        <div>备案号:{$common.number}</div>
        <div>技术支持:{$common.support}</div>
    </div>
</footer>
<script src="__STATIC__/mobile/js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
<script src="__STATIC__/mobile/js/swiper.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
    $(function() {
        var heg = $(window).height();
        $(".headerMenu").height(heg);
        //				轮播
        var swiper = new Swiper('.headerImages .swiper-container', {
            spaceBetween: 30,
            centeredSlides: true,
            autoplay: {
                delay: 2500,
                disableOnInteraction: false,
            },
            pagination: {
                el: '.swiper-pagination',
                clickable: true,
            },
        });
        var menuStatues = false;
        //				菜单
        $(".header-menu").click(function() {
            if(menuStatues == false) {
                $(".headerMenu").animate({
                    left: '0'
                }, "slow");
                menuStatues = true;
            } else {
                menuStatues = false;
                $(".headerMenu").animate({
                    left: '-5rem'
                }, "slow");
            }
        });
        //点击其他地方隐藏
        $(document).on('click', function(e) {
            var e = e || window.event; //浏览器兼容性
            var elem = e.target || e.srcElement;
            while(elem) { //循环判断至跟节点，防止点击的是div子元素
                if(elem.id && elem.id == 'tags') {
                    return;
                } else if(elem.id && elem.id == 'myDiv') {
                    return;
                }
                //如果还有别的div不想点击，就加else if判断
                elem = elem.parentNode;
            }
            //这里写你想实现的效果
            $(".headerMenu").animate({
                left: '-5rem'
            }, "slow");
        });
    });
</script>
</body>

</html>